//
//  BxBleTableViewCell.m
//  cangoe
//
//  Created by 魏延(颜魏) on 2025/2/20.
//

#import "BxBleTableViewCell.h"

@interface BxBleTableViewCell()

@property (weak, nonatomic) IBOutlet UILabel *indexLabel;
@property (weak, nonatomic) IBOutlet UILabel *voltageLabel;
@property (weak, nonatomic) IBOutlet UILabel *socLabel;
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;

@end

@implementation BxBleTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setIndex:(NSString *)index {
    _index = index;
    self.indexLabel.text = index;
}

- (void)setVoltage:(NSString *)voltage {
    _voltage = voltage;
    self.voltageLabel.text = [NSString stringWithFormat:@"%@V", voltage];
}

- (void)setName:(NSString *)name {
    _name = name;
    self.nameLabel.text = name;
}

- (void)setSoc:(NSString *)soc {
    _soc = soc;
    self.socLabel.text = [NSString stringWithFormat:@"%@%%", soc];
}

- (IBAction)actionDelete:(id)sender {
    if (self.clickDelete) {
        self.clickDelete();
    }
}


@end
